package com.xq.shop.service.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xq.shop.dao.IBaseDAO;
import com.xq.shop.dao.IReceiverDAO;
import com.xq.shop.po.Receiver;
import com.xq.shop.service.user.IReceiverService;

@Service("user_receiver_service")
public class ReceiverService extends BaseService<Receiver> implements IReceiverService {

	@Autowired
	private IReceiverDAO receiverDAO;
	
	@Override
	public IBaseDAO<Receiver> getDAO() {
		return receiverDAO;
	}

	@Override
	public List<Receiver> getByUserID(Long id) {
		return receiverDAO.getByUserID(id);
	}

	@Override
	public void delete(Long id, Long userId) {
		receiverDAO.delete(id, userId);
	}
}
